//
//  RelatedTableViewCell.m
//  MyListenMusicFun
//
//  Created by dllo on 16/1/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "RelatedTableViewCell.h"

@implementation RelatedTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
//        _imgView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:_imgView];
        
        self.titleLabel = [[UILabel alloc] init];
//        _titleLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_titleLabel];
        
        self.introLabel = [[UILabel alloc] init];
//        _introLabel.backgroundColor = [UIColor greenColor];
        _introLabel.textColor = [UIColor grayColor];
        _introLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_introLabel];
        
        self.markImg = [[UIImageView alloc] init];
//        _markImg.backgroundColor = [UIColor orangeColor];
        _markImg.image = [UIImage imageNamed:@"sign"];
        [self.contentView addSubview:_markImg];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _imgView.frame = CGRectMake(10, 10, 70, 70);
    _titleLabel.frame = CGRectMake(90, 15, 150, 30);
    _introLabel.frame = CGRectMake(90, 45, 220, 20);
    _markImg.frame = CGRectMake(self.contentView.frame.size.width - 40, 30, 20, 20);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
